<%@ include file="/WEB-INF/views/taglib.jsp" %>
		<div>
	  		<c:if test="${not empty message}">
	 
			<div id="message" class="${message.type}">
			<c:choose>
				<c:when test="${message.type=='success'}">
				<span class="ui-icon ui-icon-circle-check left marginright5"></span>
				</c:when>
			</c:choose>
			${message.text}
			</div>	
  		</c:if>
 
 		<spring:bind path="*">
 			<c:if test="${status.error}">
 			<c:choose>
 				<c:when test="${not empty status.errors.globalErrors}">
 				
 				<div id="message" class="error">
		  		<span class="ui-icon ui-icon-circle-close left marginright5"></span>
		  		<ul>
		  		<c:forEach items="${status.errors.globalErrors}" var="error">
		  		<li><spring:message code="${error.code}" arguments="${error.arguments}" /></li>
		  		</c:forEach>
		  		</ul>
			  	</div>	
			  	
 				</c:when>
 				<c:when test="${not empty status.errorCodes}">
 				<div id="message" class="error">
		  		<span class="ui-icon ui-icon-circle-close left marginright5"></span> 
		  		Form has errors
			  	</div>	
			  	</c:when>
 			</c:choose>
 			</c:if>
 		</spring:bind>
</div>